<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    var p1={
        name:'华为手机',
        color:'red',
        size:'16寸',
        call: function () {
            console.log('打电话给：');
        },
        send: function (name) {
            console.log('发信息给：',name);
        },
    }
    console.log(p1.name);
    console.log(p1.color);
    console.log(p1['size']);
    p1.send('小李');
    p1['call']();
    p1['send']('小刚');
</script>